import os

def get_file_extension(filename):
	arr = os.path.splitext(filename)
	return arr[len(arr) - 1].replace(".","").lower()


def del_file(fp):
	if os.path.exists(fp):
		os.remove(fp)
	else:
		print('no such file:%s'%fp)